package com.heima.api.behavior;

import com.heima.model.behavior.dtos.ArticleInfoDto;
import com.heima.model.behavior.dtos.CollectionBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-behavior")
public interface IBehaviorClient {
    @PostMapping("/api/v1/load_article_behavior")
    ResponseResult loadArticleBehavior(@RequestBody ArticleInfoDto dto);

    @PostMapping("/api/v1/collection_behavior")
    public ResponseResult collectionBehavior(@RequestBody CollectionBehaviorDto dto);
}
